Displaying Documents in a Form

You may want to display documents in a form while the user is filling out the form. This can be done by embedding the document in an IFrame on the form page. Insert the following custom HTML code using the Custom HTML option in the Layout page of the form designer:

<iframe height=620px width= 870px src=DocumentURL></iframe>

Any publicly accessible URL beginning with https: can be inserted in place of DocumentURL in the example above. You may use URLs that refer to pages that do not require authentication, do not interact with the parent frame, or that require user interaction to display the content. For example, a URL pointing to a page hosted on Laserfiche WebLink or Public Portal would work for this purpose.

You can adjust the height and width used in the above sample to suit your users' needs.

It is also possible to change the document displayed based on a user's input elsewhere on the form. The Laserfiche Solution Exchange offers some sample code showing you how to do this.

Note: The use of iframes in forms may interact in unexpected ways with the Save to Repository service task, as the STR activity will not have access to the user cookies or browser local storage when it attempts to load the iframe.